package com.atguigu.common.exception;

public enum BizErrorCode {
    VALID_EXCEPTION(10001, "数据校验异常"),
    UNKNOWN_EXCEPTION(10002, "未知异常,请联系管理员"),
    SMS_EXCEPTION(10003, "点击的太快了，请60S以后再试"),
    USERNAME_EXCEPTION(15004, "用户已经存在"),
    PHONE_EXCEPTION(15005, "手机号已经存在"),
    USERACCT_PASSWORD_INVALID_EXCEPTION(15006, "账号或者密码错误");

    private Integer code;
    private String message;

    private BizErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }


    public String getMessage() {
        return message;
    }


}
